import axios from "@/utils/axios.js"

export const login=(username, password)=>{
    return axios.post('/admin/login',{
        username,
        password
    })
}

// 获取用户信息
// http://ceshi13.dishait.cn/admin/getinfo
export const getinfo=()=>{
    return axios.post('/admin/getinfo')
}

export const uselogout = () => {
    return axios.post('/admin/logout')
}

// 修改密码
export const changepassword = (obj) => {
    return axios.post('/admin/updatepassword',obj)
}